<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        'use strict'
        // let name = "zhourui";
        // let age = 3;
        // let msg = `你好, ${name}`;
        // console.log(msg);
        // var map = new Map([["tom", 100], ["ray", 90]]);
        // console.log(map.get("ray"));//通过key获得value
        // map.set("admin", 1234);//添加和修改
        // map.delete("tom");//删除
        // var myset = new Set(["zhou", "ray", "ray"]);
        // myset.add("what");//添加
        // myset.has("ray");//是否包含
        // myset.delete("ray");//删除
        var map = new Map([["tom", 100], ["ray", 90], ["ray2", 80]]);
        for(let x of map){
            console.log(x);
        }
        var myset = new Set(["zhou", "ray", "ray", "rui"]);
        for(let x of myset){
            console.log(x);
        }
    </script>
</head>
<body>

</body>
</html>